<?php

/**
 * LogoffController - Logoff
 *
 * @author Fernando Dias Oliveira <rodox17@gmail.com>
 * @package intranet
 * @subpackage controller
 */

class LogoffController extends AppBaseController
{
	public function init()
	{
		parent::init();
	}

    public function indexAction() 
    {
    	Zend_Session::destroy(true);		
		
    	Log::write("***** Saiu do sistema *****", $this->usuario->nome);
    	
		$this->_redirect("login/");
		
		exit;
    }    
}
